package com.cookor.poi.modules.phy.service;

import com.cookor.poi.common.persistence.DataEntity;
import com.cookor.poi.common.persistence.Page;
import com.cookor.poi.common.service.CrudService;
import com.cookor.poi.modules.phy.dao.TShiftDao;
import com.cookor.poi.modules.phy.entity.TShift;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class TShiftService extends CrudService<TShiftDao, TShift> {
  public TShift get(String id) {
    return (TShift)super.get(id);
  }
  
  public List<TShift> findList(TShift tShift) {
    return super.findList( tShift);
  }
  
  public Page<TShift> findPage(Page<TShift> page, TShift tShift) {
    return super.findPage(page,  tShift);
  }
  
  @Transactional(readOnly = false)
  public void save(TShift tShift) {
    super.save( tShift);
  }
  
  @Transactional(readOnly = false)
  public void delete(TShift tShift) {
    super.delete( tShift);
  }
}
